class ItemModelEntity {
  List<ItemModelData> data;
	int code;
	String msg;

	ItemModelEntity({this.data, this.code, this.msg});

	ItemModelEntity.fromJson(Map<String, dynamic> json) {
		if (json['data'] != null) {
			data = new List<ItemModelData>();
			(json['data']['moduleList'] as List).forEach((v) { data.add(new ItemModelData.fromJson(v)); });
		}
		code = json['code'];
		msg = json['msg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data']['moduleList'] = this.data.map((v) => v.toJson()).toList();
    }
		data['code'] = this.code;
		data['msg'] = this.msg;
		return data;
	}
}
class ItemModelData{
  String id;
  String name;
  String icon;
  String sort;
	String is_index_show;
  String href;
  String type;

  ItemModelData({this.id, this.name,this.icon,this.sort,this.is_index_show,this.href,this.type});
  ItemModelData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
		name = json['name'];
    icon=json['icon'];
		sort = json['sort'];
		is_index_show = json['is_index_show'];
		href = json['href'];
		type = json['type'];
	}
Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['name'] = this.name;
		data['icon'] = this.icon;
		data['sort'] = this.sort;
    data['is_index_show']=this.is_index_show;
		data['href'] = this.href;
		data['type'] = this.type;
		return data;
	}
}